<html lang="en" xmlns="http://www.w3.org/1999/xhtml"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:o="http://omnifaces.org/ui" 
	xmlns:p="http://primefaces.org/ui"
	xmlns:fn="http://java.sun.com/jsp/jstl/functions">

<h:form id="formMenuAdmin">
	<div class="panel panel-primary">
		<div class="panel-heading">#{text['menu.admin.user.header']}</div>
		<div class="panel-body">
			<ul class="nav nav-pills nav-stacked">
				<li class="#{fn:contains(menuleft, 'AdminUsersMenu') ? 'active' : ''}">
					<h:commandLink action="/admin/users" value="#{text['menu.admin.users']}">
						<span class="badge pull-right">#{userList.usersSize}</span>
					</h:commandLink>
				</li>
				<li class="#{fn:contains(menuleft, 'AdminActiveUsersMenu') ? 'active' : ''}">
					<h:commandLink action="/admin/activeUsers" value="#{text['home.activeUsers']}">
						<span class="badge pull-right">#{activeUserList.usersSize}</span>
					</h:commandLink>
				</li>
				<li class="#{fn:contains(menuleft, 'UserFormMenu') ? 'active' : ''}">
					<h:commandLink action="#{userForm.add}" value="#{text['menu.admin.add.user']}"/>
				</li>
				<li>
					<h:commandLink action="/admin/reload" value="#{text['menu.admin.reload']}"/>
				</li>
			</ul>
		</div>
	</div>
	
	
	<div class="panel panel-primary">
		<div class="panel-heading">#{text['menu.admin.anneeScolaire.header']}</div>
		<div class="panel-body">
			<ul class="nav nav-pills nav-stacked">
				<li class="nav-header"></li> 
				<li class="#{fn:contains(menuleft, 'AdminAnneeScolairesFormMenu') ? 'active' : ''}">
					<h:commandLink action="/anneeScolaires" value="#{text['menu.admin.anneeScolaires']}">
						<span class="badge pull-right">#{anneeScolaireList.anneeScolairesSize}</span>
					</h:commandLink>
				</li>
				<li class="#{fn:contains(menuleft, 'AdminAnneeScolaireFormFormMenu') ? 'active' : ''}">
					<h:commandLink action="#{anneeScolaireForm.edit}" value="#{text['menu.admin.anneeScolaire.add']}"/>
				</li>
			</ul>
		</div>
	</div>
	
	<div class="panel panel-primary">
		<div class="panel-heading">#{text['menu.admin.config']}</div>
		<div class="panel-body">
			<ul class="nav nav-pills nav-stacked">
				<li class="nav-header"></li>
				<li class="#{fn:contains(menuleft, 'AdminStartAnneeScolaireMenu') ? 'active' : ''}">
					<h:commandLink action="/startAnneeScolaire.xhtml" value="#{text['menu.admin.start.anneeScolaire']}"/>
				</li>				
			</ul>
		</div>
	</div>
</h:form>
</html>